import {newRequest} from '@/utils/newRequest'
import {requestBodyParsed2Form} from '@/utils'
export function getData(params) {
    return newRequest({
      url: '/api/Plan/GetOrderPlanPageList',
      method: 'get',
      params:{
        ...params
      }
    })
  }

  export function getOrderProductDOList(params) {
    return newRequest({
      url: '/api/Plan/GetOrderProductDOList',
      method: 'get',
      params:{
        ...params
      }
    })
  }
  // 点击查询订单日志
  export function getOrder(params){
    return newRequest({
      url:'/api/system/GetUseLogList',
      method:'get',
      params:{
        ...params
      }
    })
  }
  //订单加急
export function urgentOrderBag(data) {
  return newRequest({
      url: '/api/Plan/UrgentOrderBag',
      method: 'post',
      data: {
          ...data
      }
  })
}
 //查询照片明细
 export function getOrderFileDOList(params) {
  return newRequest({
      url: '/api/Plan/GetOrderFileDOList',
      method: 'get',
      params:{
        ...params
      }
  })
}


// 快递详情
export function expressMessage(params){
  return newRequest({
    url:'/api/Plan/GetShippingRouteQuery',
    method:'get',
    params:{
      ...params
    }
  })
}
/*
* 暂停订单
* */
export function PauseOrder(data) {
  return newRequest({
    url:'/api/OrderBag/PauseOrder',
    method:'post',
    params: data
  })
}
/*
* 恢复订单
* */
export function ResumeOrder(data) {
  return newRequest({
    url:'/api/OrderBag/ResumeOrder',
    method:'post',
    params: data

  })
}
/*
* 暂停订单产品
* */
export function PauseOrderProduct(data) {
  return newRequest({
    url:'/api/OrderBag/PauseOrderProduct',
    method:'post',
    data
  })
}
/*
* 恢复订单产品
* */
export function ResumeOrderProduct(data) {
  return newRequest({
    url:'/api/OrderBag/ResumeOrderProduct',
    method:'post',
    data
  })
}

/*
* 获取所有商户名
* */
export function GetAllShippingCompanys(params) {
  return newRequest({
    url:'/api/ShippingCompany/GetAllShippingCompanys',
    method: 'get',
    params:{
      ...params
    }
  })
}
/*
* 提交订单修改
* */
export function ModifyOrderShippingCompany(data) {
  return newRequest({
    url:'/api/OrderBag/ModifyOrderShippingCompany',
    method: 'post',
    params:{
      ...data
    }
  })
}
/*
*
* */
export function GetOrderProductPartRoutes(params) {
  return newRequest({
    url:'/api/OrderTechRoute/GetOrderProductPartRoutes',
    method: 'GET',
    params
  })
}

// GET /api/OrderBag/
export function GetOrderProductList(params) {
  return newRequest({
    url:'/api/OrderBag/GetOrderProductList',
    method: 'GET',
    params
  })
}
